package com.zzl.bonds.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzl.bonds.ticket.dto.EnterpriseCredidataAddDto;
import com.zzl.bonds.ticket.dto.EnterpriseCredidataUpdateDto;
import com.zzl.bonds.ticket.entity.EnterpriseCreditDataEntity;
import com.zzl.general.common.exception.SysException;
import com.zzl.general.common.serurity.entity.User;
import com.zzl.general.common.utils.PageUtils;

import java.util.Map;

/**
 * 核心企业授信资料表
 *
 * @author gull
 * @date 2022-07-06 13:43:52
 */
@SuppressWarnings("javadoc")
public interface EnterpriseCreditDataService extends IService<EnterpriseCreditDataEntity> {

    /**
    * 分页查询
    *
    * @param params 查询参数
    * @return 分页数据
    */
    PageUtils queryPage(Map<String, Object> params);

    /**
    * 新增
     *
    * @param enterpriseCredidataAddDto 新增实体
    * @param user 当前登录用户
    * @throws SysException 业务异常
    */
    void saveEnterpriseCredidata(EnterpriseCredidataAddDto enterpriseCredidataAddDto, User user) throws SysException;

    /**
     * 修改
     * @param enterpriseCredidataUpdateDto 修改实体
     *
     * @param user 当前登录用户
     * @throws SysException 业务异常
     */
    void updateEnterpriseCredidataById(EnterpriseCredidataUpdateDto enterpriseCredidataUpdateDto, User user) throws SysException;
}

